<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>库表列管理</title>
  <link rel="stylesheet" href="${ctx}/static/admin/layui/css/layui.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/sidebar.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/switch.css">
</head>
  <body>
	<div class="layui-card-body">
		<#button permission="columnsbtnadd" id="add" size="layui-btn-sm" textName="新增" event="add"/>
		<!-- <button id="add" class="layui-btn layui-btn-sm">新增</button> -->
		<!-- <button id="export" class="layui-btn layui-btn-sm">导出</button> -->
		<table id="columnstable" lay-filter="columns"></table>
	</div>
  </body>
</html>
<script src="${ctx}/static/admin/layui/layui.js"></script>
<script src="${ctx}/static/admin/js/common.js"></script>
<script type="text/html" id="toolbar">
<#button permission="columnsbtninsert" iconCls="layui-btn-normal" size="layui-btn-xs" textName="插入" event="insert"/>
{{#
  if(d.ordinal_position > 2){
}}
<#button permission="columnsbtnmoveup" iconCls="layui-btn-primary" size="layui-btn-xs" textName="上移" event="moveup"/>
{{#
  }
}}
{{#
  if(d.LAY_INDEX < ${count}){
}}
<#button permission="columnsbtnmovedown" iconCls="layui-btn-primary" size="layui-btn-xs" textName="下移" event="movedown"/>
{{#
  }
}}
<#button permission="columnsbtnedit" iconCls="layui-btn-warm" size="layui-btn-xs" textName="编辑" event="edit"/>
<#button permission="columnsbtndel" iconCls="layui-btn-danger" size="layui-btn-xs" textName="删除" event="del"/>
</script>
<script type="text/html" id="showable">
  <input type="checkbox" name="is_show" lay-filter="isshow" value="{{d.is_show}}" lay-skin="switch" lay-text="是|否" {{ d.is_show == '1' ? 'checked' : '' }}>
</script>
<script type="text/javascript">
    var ctx = '${ctx}', moduleid = '${moduleid!}', tablename = '${tablename!}';
</script>
<script src="${ctx}/static/admin/module/columnsList.js"></script>